<fieldset>
<legend>Affiliate</legend>
<?php
/*
+--------------------------------------------------------------------------
|   AffiliStore 2
|   ========================================
|   Web: http://www.affilistore.com
|   Email: admin (at) affilistore (dot) com
|	License Type: AffiliStore 2 is NOT open source software and limitations apply 
|   Licence Info: Visit AffiliStore website and click on 'Licence'
+--------------------------------------------------------------------------
*/
// checks to see if password session is set
// if not redirects to ../admin/

include_once '../includes/models/Click.php';
include_once '../includes/models/Auth.php';
include_once '../includes/models/Account.php';
include_once '../includes/models/Product.php';

$authenticate = new Auth();
$click = new Click();
$account = new Account();
$product1 = new Product();
$accObj = $account->get($authenticate->getIdentity());

echo 'Welcome '.$accObj['accTitle'].' '.$accObj['accFirstName'].' '.$accObj['accLastName'].'! ';
echo 'You have added total '.$product1->getNumOfProduct($authenticate->getIdentity()).' products yet.<br /><br />';
echo 'Your total number of clicks: '.$click->getTotal($authenticate->getIdentity());

?>
</fieldset>